var gulp = require('gulp')
var config=require('./index.js')
var rename = require('gulp-rename')
var clean = require('gulp-clean');

//dev任务  需要异步执行axml,ascc,json,js,image任务
gulp.task('dev', gulp.series( done=> {
     gulp.src(config.dev)
        .pipe(rename(function(path) {
            path.basename = 'config'
        }))
        .pipe(gulp.dest(config.dist))
        done();
}));
//test任务 需要异步执行axml,ascc,json,js,image任务
gulp.task('test', gulp.series( done=> {
     gulp.src(config.test)
        .pipe(rename(function(path) {
            path.basename = 'config'
        }))
        .pipe(gulp.dest(config.dist))
        done();
  
}));
